#ifndef CLIENT_HANDLER_HH_
# define CLIENT_HANDLER_HH_

//out includes
# include <tbb/concurrent_hash_map.h>

//booby includes
# include "client.hh"

//fwd
class Server;

struct GamePlayer
{
  Client* client;
  std::string conf_file;
};

class ClientHandler
{
public:
  ClientHandler ();
  ~ClientHandler ();

  void new_client (tcp::socket* sock);

  void attach_server (Server* server);

protected:
  tbb::concurrent_hash_map<std::string, GamePlayer> cl_;
  Server* server_;

  //  Database* db_;
};

#endif /// !CLIENT_HANDLER_HH_
